package com.idea.plugin.core.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yanzhao
 * @date 2022/2/21 16:47
 * @since 1.0.0
 */
public class SystemStreamLog implements Log {

    private static final Logger LOGGER = LoggerFactory.getLogger(SystemStreamLog.class);

    @Override
    public boolean isDebugEnabled() {
        return true;
    }

    @Override
    public void debug(CharSequence var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void debug(CharSequence var1, Throwable var2) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void debug(Throwable var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public boolean isInfoEnabled() {
        return true;
    }

    @Override
    public void info(CharSequence var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void info(CharSequence var1, Throwable var2) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void info(Throwable var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public boolean isWarnEnabled() {
        return true;
    }

    @Override
    public void warn(CharSequence var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void warn(CharSequence var1, Throwable var2) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void warn(Throwable var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public boolean isErrorEnabled() {
        return true;
    }

    @Override
    public void error(CharSequence var1) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void error(CharSequence var1, Throwable var2) {
        LOGGER.info(var1.toString());
    }

    @Override
    public void error(Throwable var1) {
        LOGGER.info(var1.toString());
    }
}
